Move a constant string to rodata
authorMatthias Clasen <matthiasc@src.gnome.org>
Tue, 4 Apr 2006 03:49:32 +0000 (03:49 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 4 Apr 2006 03:49:32 +0000 (03:49 +0000)
gtk/xdgmime/ChangeLog
gtk/xdgmime/xdgmime.c
gtk/xdgmime/xdgmime.h

index dcb67144d9da9de0822ebc59d4b1be33f1c3a1ed..c04293a45d5e71ce4afecc795260e4ac0019e934 100644 (file)
@@ -1,3 +1,7 @@
+2006-04-03  Matthias Clasen  <mclasen@redhat.com>
+
+       * xdgmime.[hc]: Move xdg_mime_type_unknown to .rodata.
+
 2006-03-06  Matthias Clasen  <mclasen@redhat.com>
 
        * xdgmimemagic.c: Remove superfluous extern errno 
index 931576e6cc5abfe24c52578bfc424bf2199f299f..2cc1e68d274d315812ab1ceee76962605f96214a 100644 (file)
@@ -60,7 +60,7 @@ static XdgCallbackList *callback_list = NULL;
 XdgMimeCache **_caches = NULL;
 static int n_caches = 0;
 
-const char *xdg_mime_type_unknown = "application/octet-stream";
+const char xdg_mime_type_unknown[] = "application/octet-stream";
 
 
 enum
index 08103fc64c7cc1274332041ef128141d677b7679..2fa4a7cf39715b64bdb93ea36443288053b9e84a 100644 (file)
@@ -65,7 +65,7 @@ typedef void (*XdgMimeDestroy)  (void *user_data);
 #define xdg_mime_type_unknown                 XDG_ENTRY(type_unknown)
 #endif
 
-extern const char *xdg_mime_type_unknown;
+extern const char xdg_mime_type_unknown[];
 #define XDG_MIME_TYPE_UNKNOWN xdg_mime_type_unknown
 
 const char  *xdg_mime_get_mime_type_for_data       (const void *data,